import random

keepGoing = True
inputNum = int(input('请输入1~10之间的任意一个数：'))
radomNum = random.randint(1, 10)
print(radomNum)
while keepGoing:
    if(inputNum == radomNum):
        inputStr = str(inputNum)
        print('恭喜你,你赢了，猜中的数字是: ' + inputStr + '\n ------------游戏结束------------')

        keepGoing = False
    else:
        if(inputNum > radomNum):
            print('太大')
        else:
            print('太小')
        inputNum = int(input('请输入1~10之间的任意一个数：'))
